/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package yudisium;

/**
 *
 * @author Win-7
 */
import java.awt.BorderLayout;
import java.util.ArrayList;
import javax.swing.*;

public class PanelLihatTabelYudisium extends JPanel {

    private JTable tablePublikasi;
    private JLabel labelPanel;

    public PanelLihatTabelYudisium() {

    }
    private ArrayList<Mahasiswa> data;

    public PanelLihatTabelYudisium(ArrayList<Mahasiswa> data) {
            setLayout(new BorderLayout());
            this.data = data;

            labelPanel = new JLabel("Lihat Yudisium");
            labelPanel.setHorizontalAlignment(JLabel.CENTER);
            add(labelPanel, BorderLayout.NORTH);

            tablePublikasi = new JTable();
            tablePublikasi.setModel(new PeriksaYudisiumTabelModel(data));
            add(tablePublikasi, BorderLayout.CENTER);
        }

    public ArrayList<Mahasiswa> getData() {
        return data;
    }

    public void setData(ArrayList<Mahasiswa> data) {
        this.data = data;
    }
}
